#pragma once

class Map
{
private:
	static HDC mhdc;

	Map();
	~Map();

	Wall * wall;
	Steel * steel;
	Water * water;
	Grass * grass;
public:
	static Map * getInstance();
	static void setHDC(HDC hdc);

	Wall * getWall();
	Steel * getSteel();
	Water * getWater();
	
	bool collide(Rect rc);
	bool collide(Point pt);
	Point getVacant(int width, int height);
	void set(rapidxml::xml_node<wchar_t> * mapnode);
};